package com.jic.market.service;

import com.jic.common.base.vo.PageResult;
import com.jic.common.base.vo.RestResult;
import com.jic.market.entity.Material;
import com.jic.market.request.MaterialAddRequest;
import com.jic.market.request.MaterialDeleteRequest;
import com.jic.market.request.MaterialEditRequest;
import com.jic.market.request.MaterialQueryRequest;

/**
* 素材表
* @author : 
* @email : 
* @since : 2020-02-27 04:39:32
* @version : v1.0.0
*/
public interface MaterialService {

    // 分页查询素材
    RestResult<PageResult<Material>> queryPage(MaterialQueryRequest request);

    // 新增
    RestResult<Long> add(MaterialAddRequest request);

    // 编辑
    RestResult<Long> update(MaterialEditRequest request);

    // 删除
    RestResult<Long> delete(MaterialDeleteRequest request);

}